package cn.com.surker.material.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 过磅消息推送表
 * </p>
 *
 * @author admin
 * @since 2022-10-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WeighMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 微信appid
     */
    private String appid;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 姓名
     */
    private String name;

    /**
     * 收货公司
     */
    private String orgName;

    /**
     * 供应商名称
     */
    private String supplier;

    /**
     * 过磅材料
     */
    private String material;

    /**
     * 过磅类型(0:毛重称重1:净重称重2:罐车除皮)
     */
    private Integer type;

    /**
     * 车牌号
     */
    private String carNo;

    /**
     * 毛重
     */
    private Double grossWeight;

    /**
     * 皮重
     */
    private Double tare;

    /**
     * 净重
     */
    private Double netWeight;

    /**
     * 状态(0：启用，1：禁用)
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 备注
     */
    private String remark;

    public WeighMessage(){}
    public WeighMessage(String orderId, String appid, String openid, String phone, String name, String orgName,
                        String supplier, String material, Integer type, String carNo, Double grossWeight, Double tare,
                        Double netWeight, Integer status, Date createTime, String remark) {
        this.orderId = orderId;
        this.appid = appid;
        this.openid = openid;
        this.phone = phone;
        this.name = name;
        this.orgName = orgName;
        this.supplier = supplier;
        this.material = material;
        this.type = type;
        this.carNo = carNo;
        this.grossWeight = grossWeight;
        this.tare = tare;
        this.netWeight = netWeight;
        this.status = status;
        this.createTime = createTime;
        this.remark = remark;
    }
}
